<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>编辑公司简介内容</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="<%=path %>/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="<%=path %>/js/dream_plugins.js"></script>
	<script type="text/javascript" src="<%=path %>/js/BasicSettings.js"></script>
	<script type="text/javascript" src="<%=path %>/plugins/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="<%=path %>/plugins/ueditor/ueditor.all.js"></script>
	<script type="text/javascript" charset="gbk" src="<%=path %>/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
  </head>
  
  <body>
    <div style="width:99%;">
    	<textarea rows="" cols="" id="ZhData" name="ZhData" style="display:none;">${request.ZhData }</textarea>
    	<textarea rows="" cols="" id="EnData" name="EnData" style="display:none;">${request.EnData }</textarea>
    <form id="textform" name="textform" action="#" method="post">
    	<textarea rows="" cols="" name="content" id="editor" style="height:450px;">${request.ZhData }</textarea>
    	<input type="button" id="saveZh" name="saveZh" value="保存为中文" onclick="SaveText('textform', '${request.Opt }');" />&emsp;
    	<input type="button" id="saveEn" name="saveEn" value="保存为英文" onclick="SaveText('textform', '${request.Opt }E');" disabled="disabled" />&emsp;
    	<!-- <input type="button" value="预览效果" /> -->&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
    	<input type="button" id="fillchinese" value="编辑中文内容" onclick="FillChineseContent();" />&emsp;
    	<input type="button" id="fillenglish" value="编辑英文内容" onclick="FillEnglishContent();" />
    </form>
    </div>
    <div class="fillchinesetip" style="display:none;"><span>提示：填充过去保存的中文内容</span></div>
  </body>
   <script type="text/javascript">
    var editor = new baidu.editor.ui.Editor({
    	UEDITOR_HOME_URL : '/CMSProject/plugins/ueditor/',
    	autoClearinitialContent : false,
    	iframeCssUrl : '/CMSProject/plugins/ueditor/default/iframe.css',
    	textarea:'content',
    	enableAutoSave: false,
    	autoHeightEnabled: false,
        fullscreen : false, //是否开启初始化时即全屏，默认关闭
        toolbars:[
                  ['fullscreen', 'source', '|', 'undo', 'redo', '|',
                      'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 
                      'formatmatch', 'hougelou', 'autotypeset', 'blockquote', 'pasteplain', 
                      '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                      'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                      'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                      'directionalityltr', 'directionalityrtl', 'indent', '|',
                      'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
                      'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
                      'simpleupload','insertimage', 'emotion', 'attachment', 'map', 'insertframe', 'pagebreak', 'background', '|',
                      'horizontal', 'date', 'time', 'spechars', 'snapscreen', '|',
                      'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 
                      'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|',
                      'preview', 'searchreplace', 'help']
              ]
    });
    editor.render('editor');
    </script>
</html>
